<template>
	<view class="content">
		<view class="section section-1">
			<view class="section-body">
				<view class="info">
					<view class="top-title">
						<view class="company">
							中国能源建设集团江苏电力设计院有限公司
						</view>
						<view class="add-btn">
							+ 添加责任人
						</view>
					</view>
					<view class="wrapper">
						<view class="title">总监理工程师</view>
						<view class="value">
							<view class="member" v-for="item in 5">
								<text @click="handleCall('13033431606')" class="iconfont icon-24gl-phoneLoudspeaker"></text>
								<text class="name">王章轩</text>
								<view class="rate">
									<u-rate size="18" inactiveColor="#9b9b9b" :count="count" activeColor="#ffde00" v-model="value"></u-rate>
								</view>
								<text class="iconfont icon-bianji1"></text>
							</view>
						</view>
					</view>
					<view class="wrapper">
						<view class="title">总监理工程师代表</view>
						<view class="value">
							<view class="member" v-for="item in 5">
								<text @click="handleCall('13033431606')" class="iconfont icon-24gl-phoneLoudspeaker"></text>
								<text class="name">王章轩</text>
								<view class="rate">
									<u-rate size="18" inactiveColor="#9b9b9b" :count="count" activeColor="#ffde00" v-model="value"></u-rate>
								</view>
								<text class="iconfont icon-bianji1"></text>
							</view>
						</view>
					</view>
					<view class="wrapper">
						<view class="title">专业监理工程师</view>
						<view class="value">
							<view class="member" v-for="item in 5">
								<text @click="handleCall('13033431606')" class="iconfont icon-24gl-phoneLoudspeaker"></text>
								<text class="name">王章轩</text>
								<view class="rate">
									<u-rate size="18" inactiveColor="#9b9b9b" :count="count" activeColor="#ffde00" v-model="value"></u-rate>
								</view>
								<text class="iconfont icon-bianji1"></text>
							</view>
						</view>
					</view>
					<view class="wrapper">
						<view class="title">信息资料员</view>
						<view class="value">
							<view class="member" v-for="item in 5">
								<text @click="handleCall('13033431606')" class="iconfont icon-24gl-phoneLoudspeaker"></text>
								<text class="name">王章轩</text>
								<view class="rate">
									<u-rate size="18" inactiveColor="#9b9b9b" :count="count" activeColor="#ffde00" v-model="value"></u-rate>
								</view>
								<text class="iconfont icon-bianji1"></text>
							</view>
						</view>
					</view>
					<view class="wrapper">
						<view class="title">监理员</view>
						<view class="value">
							<view class="member" v-for="item in 5">
								<text @click="handleCall('13033431606')" class="iconfont icon-24gl-phoneLoudspeaker"></text>
								<text class="name">王章轩</text>
								<view class="rate">
									<u-rate size="18" inactiveColor="#9b9b9b" :count="count" activeColor="#ffde00" v-model="value"></u-rate>
								</view>
								<text class="iconfont icon-bianji1"></text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { checkListApi } from '@/api/statistics.js';
	export default {
		data() {
			return {
				count: 5,
				value: 2
			}
		},
		methods: {
			handleCall(number) {
				uni.makePhoneCall({
				    phoneNumber: number
				});
			}
		},
		
	}
</script>

<style lang="scss" scoped>
	.section-1{
		width: 100%;
		height: auto;
		background-color: #3a5df5;
		.section-body{
			width: 100%;
			box-sizing: border-box;
			padding: 40rpx;
			background-color: #fff;
			border-top-left-radius: 50rpx;
			border-top-right-radius: 50rpx;
			padding-top: 50rpx;
		}
		.info{
			width: 100%;
			.top-title{
				width: 100%;
				@include clear;
				padding-bottom: 60rpx;
				.company{
					text-align: left;
					width: 400rpx;
					font-size: 26rpx;
					line-height: 30rpx;
					font-weight: bold;
					font-stretch: normal;
					letter-spacing: 2rpx;
					color: #3b3c40;	
					float: left;
				}
				.add-btn{
					text-align: center;
					float: right;
					width: 189rpx;
					height: 48rpx;
					border-radius: 21rpx;
					border: solid 2rpx #1534ce;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 48rpx;
					letter-spacing: 0rpx;
					color: #1534ce;
				}
			}
			.wrapper{
				width: 100%;
				border-radius: 35rpx;
				background-size: cover;
				background-repeat: no-repeat;
				overflow: hidden;
				box-sizing: border-box;
				box-shadow: 0 0 20rpx 10rpx rgba(#bcbcb5, 0.17);
				padding: 28rpx 40rpx;
				margin-bottom: 24rpx;
				.title {
					width: 100%;
					height: 30rpx;
					line-height: 30rpx;
					border-bottom: solid 3rpx #f2f2f0;
					font-size: 26rpx;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #3b3c40;
					padding-bottom: 28rpx;
					view {
						float: right;
						font-size: 26rpx;
						color: #8497ac;
						font-weight: normal;
						.iconfont{
							font-size: 26rpx;
							margin-right: 5rpx;
						}
					}
				}
			
				.value {
					width: 100%;
					padding-top: 28rpx;
					.member{
						width: 100%;
						height: 40rpx;
						line-height: 40rpx;
						margin-bottom: 15rpx;
						&:last-child{
							margin-bottom: 0;
						}
						.icon-24gl-phoneLoudspeaker{
							color: #1d3bd0;
							font-size: 26rpx;
							margin-right: 13rpx;
						}
						.name{
							font-size: 26rpx;
							color: #3b3c40;
							margin-right: 13rpx;
						}
						.rate{
							display: inline-block;
						}
						.icon-bianji1{
							float: right;
							color: #1d3bd0;
							font-size: 26rpx;
						}
					}
					.record{
						width: 100%;
						@include clear();
						margin-bottom: 25rpx;
						.left{
							width: 100%;
							float: left;
							font-size: 26rpx;
							line-height: 36rpx;
							color: #3b3c40;
							margin-bottom: 10rpx;
						}
						
						.log{
							width: 100%;
							line-height: 28rpx;
							font-size: 20rpx;
							color: #3b3c40;
						}
						&:last-child{
							margin-bottom: 0;
						}
					}
				}
				
			}
		}
	}
</style>
